package com.ruoyi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 能源政策法规
 * @TableName ny6
 */
@TableName(value ="ny6")
@Data
public class Ny6 implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 能源类型
     */
    private String ny;

    /**
     * 环境主要影响类型
     */
    private String zylx6;

    /**
     * 环境影响程度
     */
    private Long hjyx6;

    /**
     * 治理成本（万元）
     */
    private Long cb6;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ny6 other = (Ny6) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getNy() == null ? other.getNy() == null : this.getNy().equals(other.getNy()))
            && (this.getZylx6() == null ? other.getZylx6() == null : this.getZylx6().equals(other.getZylx6()))
            && (this.getHjyx6() == null ? other.getHjyx6() == null : this.getHjyx6().equals(other.getHjyx6()))
            && (this.getCb6() == null ? other.getCb6() == null : this.getCb6().equals(other.getCb6()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getNy() == null) ? 0 : getNy().hashCode());
        result = prime * result + ((getZylx6() == null) ? 0 : getZylx6().hashCode());
        result = prime * result + ((getHjyx6() == null) ? 0 : getHjyx6().hashCode());
        result = prime * result + ((getCb6() == null) ? 0 : getCb6().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ny=").append(ny);
        sb.append(", zylx6=").append(zylx6);
        sb.append(", hjyx6=").append(hjyx6);
        sb.append(", cb6=").append(cb6);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}